<template>
  <div class="center-box">
    <div class="account">
      <h4>子账号</h4>
      <div>


        <el-input  class="choose" v-model="user.account"></el-input>
      </div>
    </div>
    <div class="input">
      <h4>姓名</h4>
      <input placeholder="请输入"  v-model="user.name">
    </div>
    <div class="manage">
      <h4>管理权限</h4>
      <div class="food-time-fen">
        <div class="son"><input type="checkbox" value="0" id="foot-zao"/>&nbsp;菜品管理</div>
        <div class="son"><input type="checkbox" value="1" id="foot-zu"/>&nbsp;创建子账号</div>
        <div class="son"><input type="checkbox" value="2" id="foot-wan"/>&nbsp;权限管理</div>
        <div class="son"><input type="checkbox" value="3" id="foot-xia"/>&nbsp;人员信息删除</div>
        <div class="son"><input type="checkbox" value="4" id="foot-wu"/>&nbsp;人员信息添加</div>
      </div>
    </div>
    <div class="button">
      <button class="confirm" style="margin-top: 5px">确定</button>
      <button class="cancel" @click="cancel">取消</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "AddPersonnel",
  props: {
    userInfo: Object,

  },
  data() {
    return {
      arr: "请选择",
      text: "请输入",
      user: {}
    }
  },
  created() {
    console.info(this.userInfo)
    this.user =  JSON.parse(JSON.stringify(this.userInfo))
  },
  methods: {

    cancel() {
      this.$emit("change", false)
    }
  }
}
</script>

<style scoped>


.account {

  width: 450px;
  height: 50px;
  background: rgb(10, 33, 54);
}

.account h4 {
margin-left: 10px;
  margin-top: 15px;
  float: left;
  color: rgb(222, 224, 227);
}

.choose {


  width: 380px;
  height: 50px;
  float: right;

}


.input {
  margin: 10px 0;
  width: 450px;
  height: 50px;

  background: rgb(10, 33, 54);
}

.input h4 {
  float: left;
  margin-left: 10px;
  margin-top: 15px;
  color: rgb(222, 224, 227);
}

.input input::-webkit-input-placeholder {
  /* placeholder颜色  */
  color: rgb(82, 100, 116);
}
/deep/
.el-input__wrapper{
  background-color: rgba(0,0,0,0);
  box-shadow: none;
}
/deep/
.el-input__wrapper:hover{
  box-shadow: none !important;
}
/deep/
.el-input__inner{
  color: #3a8ee6;
 text-align: right;
}

.input input {
background-color: rgba(0,0,0,0);
  border: none;
  outline: none;
  text-align: right;
  font-size: 15px;
  color: white;
  width: 400px;
  font-weight: bold;
  line-height: 50px;
}

.manage {
  padding: 15px 0 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: rgb(10, 33, 54);
  width: 450px;
}

.manage h4 {
  margin-left: 20px;
  color: rgb(217, 219, 222);
}



.button button {
  height: 40px;
  width: 80px;
  text-align: center;
  line-height: 40px;
  color: white;
  background: rgb(45, 109, 167);
  border: none;
  font-weight: bold;
  border-radius: 5px;
}

.button {
  width: 200px;
  margin: 0 auto;
}

.button .cancel {
  margin-left: 40px;
}

.food-time-fen {
  color: rgb(117, 134, 150);
  display: flex;
  padding-top: 15px;
  flex-wrap: wrap;
  margin-left: 20px;
}

.food-time-fen .son {
  width: 33%;
}
</style>